QT = core 

CONFIG += c++17 cmdline debug

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        BlockListener.cpp \
        ExprVisitor.cpp \
        PinBaseListener.cpp \
        PinBaseVisitor.cpp \
        PinErrListener.cpp \
        PinLexer.cpp \
        PinListener.cpp \
        PinParser.cpp \
        PinVisitor.cpp \
        cppapi.cpp \
        exprvalue.cpp \
        global.cpp \
        main.cpp \
        symnode.cpp

#TRANSLATIONS += pinlang_zh_CN.ts
	
CONFIG += lrelease
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
    BlockListener.h \
    ExprVisitor.h \
    PinBaseListener.h \
    PinBaseVisitor.h \
    PinErrListener.h \
    PinLexer.h \
    PinListener.h \
    PinParser.h \
    PinVisitor.h \
    cppapi.h \
    exprvalue.h \
    global.h \
    symnode.h

unix{
INCLUDEPATH += /Users/qyj/antlr-work/lib/antlr4-src/build/output/include/antlr4-runtime
INCLUDEPATH += /Users/qyj/antlr-work/pinlang/pinlang/libs/openxlsx-static/headers
}

win32{
	INCLUDEPATH += E:\antrl4\winlib\src
	INCLUDEPATH += E:\antrl4\work\pinlang-release\libs\openxlsx-static
        #INCLUDEPATH += E:\antrl4\work\QtXlsxWriter-master\bin\include\QtXlsx
	
	if(CONFIG(debug, debug|release)){
LIBS += -L/Users/qyj/antlr-work/lib/antlr4-src/build/output/lib -lantlr4-runtime
DESTDIR = x64/Debug
    }else{
          LIBS += -LE:\antrl4\winlib\lib\release\Release-Static -lantlr4-runtime-static.lib
		  LIBS += -LE:\antrl4\work\pinlang-release\libs\openxlsx-static -lOpenXLSX.lib
                  #LIBS += -LE:\antrl4\work\QtXlsxWriter-master\bin\static-release -lQt5Xlsx.lib
        DESTDIR = x64/Release

    }
}

unix{
if(CONFIG(debug, debug|release)){
LIBS += -L/Users/qyj/antlr-work/lib/antlr4-src/build/output/lib -lantlr4-runtime
LIBS += -L/Users/qyj/antlr-work/pinlang/pinlang/libs/openxlsx-static -lOpenXLSX
DESTDIR = x64/Debug
    }else{
          LIBS += -L/Users/qyj/antlr-work/lib/antlr4-src/build/output/lib -lantlr4-runtime
          LIBS += -L/Users/qyj/antlr-work/pinlang/pinlang/libs/openxlsx-static -lOpenXLSX
        DESTDIR = x64/Release

    }
   }
